package service.impl;

import mapper.FilmMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import po.Film;
import service.IndexFilmService;

import java.util.List;

@Service
public class IndexFilmServiceImpl implements IndexFilmService {
    @Autowired
    FilmMapper filmMapper;

    @Override
    public List<Film> getindexfilminfo() {
        List<Film> films = filmMapper.getIndexfilminfo();
        return films;
    }

    @Override
    public String getfilmImgByImdburl(String imdburl) {
        String imgurl = filmMapper.getfilmImgByImdburl(imdburl);
        return imgurl;
    }
}
